<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Vue列表展示</title>
</head>
<body>
<div id="app">
    <ul>
        <li v-for="item in books">{{item}}</li>
    </ul>
</div>
<script src="../js/vue.js"></script>
<script>
    const app = new Vue({// 创建的是一个对象
        el: '#app',
        data: {
            books: ['水浒传','三国演义','西游记','红楼梦']
        }
    })
</script>
</body>
</html>